package day2.HomeWork;

public class Test5 {
    //使用三种不同方式创建一个数组并初始化，数组包含a、b、c三个元素
    public static void main(String[] args) {
        //方法一
        String[] arr1 = {"a", "b", "c"};
        //方法二
        String[] arr2 = new String[3];
        arr2[0] = "a";
        arr2[1] = "b";
        arr2[2] = "c";
        //方法三
        String[] arr3;
        arr3 = new String[]{"a", "b", "c"};
    }
}
